﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddTeam.aspx.cs" Inherits="Actuals.AddTeam" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Add Team</title>
    <base target="_self" />
    <link href="~/Actuals.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= ResolveUrl("~/Scripts/jquery.js") %>"></script>
    <script type="text/javascript" src="<%= ResolveUrl("~/Scripts/jquery.validate.js") %>"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#form1").validate({
                rules: {
                    txtTeamDescription: {
                        required: true, 
                        maxlength: 50
                    }
                },
                messages: {
                    txtTeamDescription: "* (MaxLength:50)"

                }
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <center>
        <div id="divAddTeam" runat="server">
            <asp:Label ID="lblMsg" runat="server" CssClass="message">    </asp:Label>
            <table>
                <tr>
                    <td>
                        <asp:Label ID="lblTeamDescription" runat="server" CssClass="label">TeamDescription</asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtTeamDescription" runat="server" Rows="10" Columns="30" TextMode="MultiLine"
                            CssClass="textfield">
                        </asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Button ID="btnSave" runat="server" value="Save" Text="Save" OnClick="btnSave_Click">
                        </asp:Button>
                        <input type="button" value="Close" onclick="window.close();" />
                    </td>
                </tr>
            </table>
        </div>
    </center>
    <asp:HiddenField ID="hidTeamId" runat="server" />
    </form>
</body>
</html>
